package com.sfh.ship.ui;

import com.sfh.ship.R;
import com.sfh.ship.adapter.MainAdapter;
import com.sfh.ship.manager.MainContor;
import com.sfh.ship.view.BuidSprite;
import com.sfh.ship.view.MainLayout;
import com.sfh.ship.view.MainSurfaceView;

import android.content.Context;
import android.content.Intent;
import android.graphics.BitmapFactory;
import android.hardware.input.InputManager;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.EditText;
import android.widget.GridView;

public class MainActivity extends FragmentActivity {


	private GridView mMain;
	@Override
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
		setContentView(R.layout.mian_activity);
		mMain = (GridView)findViewById(R.id.gv);
		mMain.setAdapter(new MainAdapter(this, MainContor.getBuild()));
		mMain.setOnItemClickListener(new OnItemClickListener()
        {

            @Override
            public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3)
            {
               startActivity(new Intent(MainActivity.this, FoundationActivity.class));
                
            }
        });
		
	}

}
